//
//  CASubmitOrderNoCartApi.m
//  LNH
//
//  Created by twentylx on 2018/2/22.
//  Copyright © 2018年 twentylx. All rights reserved.
//

#import "CASubmitOrderNoCartApi.h"

@implementation CASubmitOrderNoCartApi {
    NSString *_goodsId;
    NSString *_sku;
    NSString *_number;
    NSString *_addressId;
    NSString *_remark;
}

- (instancetype)initGoodsId:(NSString *)goodsId Sku:(NSString *)sku Number:(NSString *)number AddressId:(NSString *)addressId Remark:(NSString *)remark{
    self = [super init];
    if (self) {
        _goodsId = goodsId;
        _sku = sku;
        _number = number;
        _addressId = addressId;
        _remark = remark;
    }
    return self;
}

-(YTKRequestMethod)requestMethod{
    return YTKRequestMethodPOST;
}

-(id)requestArgument{
    return @{
             @"token":GVUD.token,
             @"goods_id":_goodsId,
             @"sku_id":_sku,
             @"number":_number,
             @"address_id":_addressId,
             @"remark":_remark,
             };
}

-(NSString *)requestUrl{
    NSLog(@"%@", [NSString stringWithFormat:@"%@orderDoneNoCart",BASE_SERVICE_DOMAIN]);
    return [NSString stringWithFormat:@"%@orderDoneNoCart",BASE_SERVICE_DOMAIN];
}

@end


